package com.qf.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 公用常量
 * @Data: 2022/9/9 8:08
 * @Pacakge: com.qf.config
 * @ClassName: JdbcDruidConfig
 * @Author: fan
 */
@Configuration
public class JdbcDruidConfig {
   /* @Autowired
    private DruidConfig druidConfig;
    @Bean
    public DruidDataSource druidDataSource(){
        DruidDataSource druidDataSource = new DruidDataSource();
        druidDataSource.setDriverClassName(druidConfig.getDriverClassName());
        druidDataSource.setUrl(druidConfig.getUrl());
        druidDataSource.setUsername(druidConfig.getUrl());
        druidDataSource.setPassword(druidConfig.getPassword());
        return druidDataSource;
    }*/
}

